package com.hanxy.admin.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hanxy.admin.entity.SysDepartment;
import com.hanxy.admin.model.req.SysDepartmentReq;
import com.hanxy.admin.model.resp.SysDepartmentResp;

import java.util.List;

/**
 * 系统部门Service接口
 *
 * @author dingyoukun
 * @date 2021-08-26 20:28
 **/
public interface ISysDepartmentService extends IService<SysDepartment> {
    /**
     * [新增更新]
     */
    void addOrUpdate(SysDepartmentReq req);

    IPage<SysDepartmentResp> getPageList(SysDepartmentReq req);

    /**
     * [获取列表]
     */
    List<SysDepartmentResp> getList(SysDepartmentReq req);

    /**
     * [详情]
     */
    SysDepartmentResp getDetail(Integer id);

    /**
     * [删除]
     */
    void delete(Integer id);

}
